.user-coupon {
  height: calc(100vh - env(safe-area-inset-bottom));
  overflow: hidden;

  .user-coupon-tab-region {
    height: 80rpx;
    background-color: white;
    display: flex;
    line-height: 80rpx;
    justify-content: space-around;
    border-top: 5rpx solid #f2f2f2;

    .user-coupon-tab-region-item {
      font-size: 28rpx;
      color: #999999;
      font-weight: 500;
    }

    .user-coupon-tab-region-item-active {
      border-bottom: 5rpx solid #1989fa;
      color: #1989fa;
    }
  }

  .user-coupon-body {
    background-color: #f2f2f2;
    height: calc(100vh - env(safe-area-inset-bottom) - 180rpx);
    padding-top: 20rpx;
    padding-bottom: 20rpx;
    box-sizing: border-box;
  }

  .user-coupon-body-no-coupon-available {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 290rpx;
    .user-coupon-body-no-coupon-available-image {
      height: 280rpx;
      width: 280rpx;
    }

    .user-coupon-body-no-coupon-available-tip {
      color: #959595;
    }
  }

  .user-coupon-bottom {
    height: 100rpx;
    font-size: 30rpx;
    background-color: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    .user-coupon-bottom-redeem {
      font-weight: 500;
    }

    .user-coupon-bottom-divider {
      height: 30rpx;
      width: 2rpx;
      background-color: #dcdcdc;
    }

    .user-coupon-bottom-go-to-coupon-center {
      color: #1989fa;
      font-weight: 500;
    }
  }
}


.coupon-card-container {
  margin-bottom: 20rpx;

  .coupon-card-bottom-tip {
    width: 690rpx;
    background-color: #fff;
    margin: 0 auto;
    background: linear-gradient(to bottom, #f5f5f5 0%, #fff 100%);
    padding-top: 30rpx;
    padding-bottom: 40rpx;
    padding-left: 20rpx;
    color: #989898;
    font-size: 25rpx;
    display: flex;
    flex-direction: column;
    row-gap: 30rpx;

    .coupon-card-bottom-tip-item {
      display: flex;

      .coupon-card-bottom-tip-item-key {
        width: 150rpx;
        text-align: right;
      }
    }
  }
}

.coupon-card {
  width: 690rpx;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 20rpx 20rpx 0 0;
  padding-top: 45rpx;
  padding-bottom: 45rpx;
  padding-right: 20rpx;
  display: flex;
  align-items: center;
  position: relative;

 

  .coupon-tip {
    position: absolute;
    bottom: 10rpx;
    right: 25rpx;
    font-size: 25rpx;
    color: #9e9e9e;
  }

  .coupon-card-left-has-threshold {
    width: 130rpx;
    height: 110rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10rpx;
    border-right: 2rpx dashed #70716c;
    margin-left: 20rpx;
    padding-right: 20rpx;

    .coupon-card-left-has-threshold-denomination {
      display: flex;
      align-items: baseline;
      color: #cc3422;
      font-weight: bold;

      .coupon-card-left-has-threshold-denomination-symbol {
        font-size: 20rpx;
      }

      .coupon-card-left-has-threshold-denomination-value {
        font-size: 33rpx;
      }
    }

    .coupon-card-left-has-threshold-threshold {
      color: #cc3422;
      font-size: 20rpx;
      letter-spacing: 2rpx;
    }
  }

  .coupon-card-right {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: space-between;
    padding-left: 20rpx;
    .coupon-card-right-name{
      display: flex;
      align-items: center;
      .coupon-card-icon{
        margin-right: 10rpx;
      }
    }
  }
}

.coupon-card-button {
  font-size: 23rpx;
  margin-left: auto;
  margin-right: 30rpx;
  border: 1rpx solid #cc3422;
  border-radius: 10rpx;
  padding: 10rpx;
  color: #cc3422;
}

/* 1. 立即使用（可使用状态）- 常用绿色系 */
.coupon-card-button--usable {
  border: 1rpx solid #36D399;
  color: #36D399;
}

/* 2. 已使用状态 - 常用灰色系 */
.coupon-card-button--used {
  border: 1rpx solid #9CA3AF;
  color: #9CA3AF;
}

/* 3. 已失效状态 - 常用暗红色系 */
.coupon-card-button--expired {
  border: 1rpx solid #F87272;
  color: #F87272;
}

.coupon-card-button.claimed-out {
  border: 1rpx solid #c7c7c7;
  color: #c7c7c7;
}